﻿using System;

namespace WinLiveHelper.Wp7
{
	public class PayloadEventArgs<T> : EventArgs
	{
		public PayloadEventArgs(T value, object userState)
		{
			Value = value;
			UserState = userState;
		}

		public PayloadEventArgs(Exception error, object userState)
		{
			Error = error;
			UserState = userState;
		}

		public T Value { get; private set; }
		public Exception Error { get; private set; }
		public object UserState { get; private set; }
	}
}
